
#include <memory>
#include "Log.hpp"
#include "Task.hpp"
#include "ThreadPool.hpp"
// #include"Task.hpp"

using namespace LogModule;
using namespace ThreadPoolModule;

int main()
{
    Enable_Console_Log_Strategy();
    // LOG(LogLevel::DEBUG) << "XXXXXXXXXXXX" << 3.11;
    ThreadPool<task_t> *tp = new ThreadPool<task_t>();
    tp->Start();
    int count = 10;
    while (count--)
    {
        tp->Enqueue(DownLoad);
        sleep(3);
    }
    tp->Stop();
    tp->Join();
    return 0;
}